]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
accessibility/keyboard: Align the panelMenu button style
authorRazze <razzeee@gmail.com>
Tue, 2 Feb 2021 00:51:15 +0000 (01:51 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 4 Feb 2021 20:08:29 +0000 (20:08 +0000)
This get's rid of the single-indicator introduced in one of the latest
commits. This was causing the accessibility pill in the top panel
 to have different padding from the keyboard layout pill.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1615>

data/theme/gnome-shell-sass/widgets/_panel.scss
js/ui/status/accessibility.js
js/ui/status/keyboard.js

index e751a94b6554c8909d2050659ecaba473f6215fb..bc526f0fe75e2c9cf0fc194e70fe5a689cd5da41 100644 (file)
@@ -72,16 +72,16 @@ $panel_transition_duration: 250ms; // same as the overview transition duration
       }
     }
 
-    // single indicator
-    .single-indicator {
-      margin-left: $base_margin + 3px;
-      margin-right: $base_margin + 3px;
-    }
-
     // status area icons
     .system-status-icon {
       icon-size: $base_icon_size;
       padding: $base_padding - 1px;
+      margin: 0 $base_margin;
+    }
+
+    .panel-status-indicators-box .system-status-icon,
+    .panel-status-menu-box .system-status-icon {
+      margin: 0;
     }
 
     // app menu icon
index f5dc77efc41ba9fcfb216bc64151bf52b6ad04dd..a0513f68c8f58ada2364ce99f447fc959df3c72c 100644 (file)
@@ -35,7 +35,7 @@ class ATIndicator extends PanelMenu.Button {
         super._init(0.5, _("Accessibility"));
 
         this.add_child(new St.Icon({
-            style_class: 'single-indicator system-status-icon',
+            style_class: 'system-status-icon',
             icon_name: 'preferences-desktop-accessibility-symbolic',
         }));
 
index f79fc54447ee019616eb448458ee5d2b9ad87e48..e34b603134d1d23311dc2339fe998e8fbb8e8163 100644 (file)
@@ -829,7 +829,7 @@ class InputSourceIndicator extends PanelMenu.Button {
         this._menuItems = {};
         this._indicatorLabels = {};
 
-        this._container = new InputSourceIndicatorContainer({ style_class: 'single-indicator' });
+        this._container = new InputSourceIndicatorContainer({ style_class: 'system-status-icon' });
         this.add_child(this._container);
 
         this._propSeparator = new PopupMenu.PopupSeparatorMenuItem();